package com.sunny.utils;

import java.util.List;

/**
 * @ClassName:
 * @Description:
 * @author: yubao.jin
 * @date: 2018/5/6
 * @version:V1.0
 */
public class PageInformation<T> {
    private long total;
    private List<T> rows;
    private static PageInformation geInformation = null;

    private PageInformation() {}

    public static PageInformation getInstance() {
        if (geInformation == null) {
            geInformation = new PageInformation();
        }

        return geInformation;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
